This is a close up of the corner of a roof on one of the buildings at the Temple of Heaven Park. There were similar decorations at the Forbidden City. If I recall correctly, these figures were for protection from fire but I can't find a reference for that.