Fixes for #613
Merge branch 'trunk' of https://github.com/impetus-opensource/Kundera into trunk