Fixed the parsing of internal primary keys. This resolves part of #72
Authored by: hotzst 2009-10-13
Parent: [r2715]
Child: [r2717]