Bugfixes
to_object now accepts all kinds of parameters