add the $ property

fixes https://github.com/dart-lang/custom-element-apigen/issues/16

I also added some toLowerCase() calls when checking for types since we are missing a few things due to that.