Bugfix: identical() method

Switch logic didn't have a default case.