The code is pushed. Other windowmanager break the aspect ratio when maximising the window, too. Therefore I think pekwm can do the same. Please create a new task if you disagree. :-)
I tested the patch and it works as a user would expect. The only open question is whether it should be respected when a windows is maximized? (currently isn't).
Please try the preliminary patch and tell me if it works as expected.