Fixed similar issue as in `Monoid.js' (ensures immutability).