A polyfilll for Mozilla's Object.toSource() method.