Fix some corner cases when (de)serializing aggregate types

The serializer now ignores member functions which are templates, return
by ref, or don't have the @property attribute.
Fix isSomeFunction check when overloads are present
Add some serialization unittests
Unittest serialization through properties
Merge pull request #817 from ReneZwanenburg/serialization-template-ref-fix

Fix (de)serialization of aggregate types with functions returning by ref