phpdoc
Fix broken ensureTags test
Add test for ensureTypes
Ensure the type_ids are cast to integer.
If not using qreply, this code will never berun
Merge branch 'master' into imp_6_1