Added more checks to array and object types.
Removed options sublevel in configuration to make simpler definitions.