changed BVH4 encoding, type should be in lower bits and num items in upper bits