Writing/reading of Objectmaps to files

Made structs serializable to be used as arguments in ObjectBlueprints.
Changed IsAssignableFrom checks to IsSubclassOf (had the wrong method).
Magic number was not read right. Fixed by turning CharArray to String
before comparison.