mindless improvements to debugging output
fix assignment index atoms, parsing of local references