Fixed issues with detecting Objects and Arrays

Pushed version to 10.1