Fix crash in CBLModel when setOnMutate is not defined in CBLJSONEncoding submodel

The issue happens when CBLJSONEncoding objects in an array property do not have setOnMutate: method implemented. Need to check if the setOnMutate selector exists before calling. #517