support const methods, not just attributes, in webidl binder