CB support initial: models, fixed #211, part of #209, also variable completion from the module attribute