all_same_types was not called correctly. and it was wrong. closes #81