Added a missing semicolon
Minor syntax fixes

Made a few errant references to a variable c (was supposed to be T), and
fixed the push_back in allEntityIDs() (was trying to push the pair, not
just the key).