Rename deepequal.go to utils_deepequal.go

This helps someone looking over the code for the first time know that
it's not a core part of the program.
Use Type method for the switch instead of type assertion.