VE-1592: Adjust Gallery serializing handler to catch only figures and placeholders

This is to avoid serializing diffMarks - which are not meant to be serialized