Allows for aliased methods in serialization

Rebased version of #346