fix for GPMONGODB-259: Support for basic collection types in beforeSomeAction() methods