Fix SymDenotation.isPrimaryConstructor

.denot was missing
Seems to be a bug ping @odesrky
Fix isDefinedInCurrentUnit
Cleanup patmat.