Fixed foreach and lmap
Misc small stuff I forgot to check in ages ago