initial fix of translation bugs, better on locals, fixes undefined prop, some lyn translations

Change-Id: I5d743896109e56a5d2d9254657a6240b5de5bdfe
Fixed my bug in generating code for procedure declarations with zero args.

Change-Id: I3c191e40ebe99fc2f2dae7ee67bb7adbf25d76e1