Minor improvements.

Context menu doesn't show "Edit Materials" if the item base cannot have
materials. Item's constructor no longer allows invalid prefixes or
materials (they are removed/set to default if invalid). GMCalc2 now
overrides preUpdateState rather than update to add the debug view
functionality.