Minor fixes to language bindings. (Resolves #607.)