Fixes for #253, getSingleResult()
Merge branch 'trunk' of github.com:impetus-opensource/Kundera into trunk