Fix a number of errors that prevented the initialization of the add-on.

Shu's recent changes to the behavior of 'let' broke the add-on. This fixes it, but it would be best if @captainbrosset made sure I didn't mess the inspector code up.