Allow serializer attribute functions to have arity of 1 or 2.
Merge pull request #1 from AgilionApps/optional-conn

Allow serializer attribute functions to have arity of 1 or 2.