Multi parameter type classes #125. Also fix #224.