Fixed race condition in creation of codeareas. Sometimes codeareas array contained 2*n instances).
Blocks now render properly in Firefox (they don't render while canvas is hidden).
Rename fields.
Minor code beautification