additional type check of handle in sql importer
update sonata core bundle
small refactoring in Text and Book classes; misc fixes