workaround for buggy scala specialization is working

see http://stackoverflow.com/a/16670257/1418097