Implement rmgen SlopeConstraint which is met if the elevation difference is within the given range, fixes #5004.
Add NearTileClassesConstraint that is satisfied when there is a tile marked with the given class in the given range.
Use it for the grass and mountain terrain painting on Pyrenean Sierra.