cross-compatability with Tortoise Proper getPatchAt
get util.math/clamp back for wrapping logic

This reverts commit 0f4992a63f02ef7cc92b9deac7367f9eedb844de.
reorganize requires, add clamp-default wraps
fix bad calls