Fixed selectors for variable getters
Added JSON serialization for blocks, inputs, and stacks