Added AutoCloseable interface for more SWIG objects
Cleanup in methods
JSON parameters can include bounds