Case-insensitively compare source codes [PD-278]

All tests pass. Feel free to ask for clarification - I had trouble reading that and I'm the one that wrote it.
Now that I've merged this, I have to say - I hate map.