Fixed #72 serializing with prototype