Add unittest for issue 6381 (std.math.floor/ceil should be pure)

To prevent regressions (issue is already fixed thanks to Iain's work on std.math).