Fix for #101 checkValid handling of indexed objects