Replaced Math::Wrap with a version that works with non-int types