correctly serializing methods passed on the options hash for serialization