Wrap primitive parameter with Map instead of DBObject

refs #197