Useful extensions for base Ruby types