Adds useful methods to scala & java classes.