added support for primitives in the root array