Add support for layer min/maxResolution
Fix tests for min/maxResolution