A few useful extensions to core Ruby classes