Added ability to pass in swig object defaults (includes test)