First round of bug fixes

This PR fixes all 3 problems we have identified during the deployment of oBIX 1.2.1 by far.

Bad we can't associate Github PR with Jira defects. Or can we?