Refactoring and additions related to hint experiments

This goes along with "https://github.com/code-dot-org/blockly/pull/767".
because private only applies to methods, not constants. Which is a bit weird because you can actually make private constants (with the private_constant method). Maybe they decided to not change how private works when adding private constants for backwards compatibility.