Rewrite result set assembly for polymorphic query especially when paging...

... is needed.

Unit tests for polymorphic queries with and without paging.
Fixes NH-3569

Signed-off-by: CSharper2010 <csharper2010@googlemail.com>