Fixed other problem with PDB handling

Also:
* Replaced a short method with a simple lambda
* Removed ProteinAtom::isType to avoid problems between element/type/pdb-type-with-spaces