Minor funcationality additions for scala