Changes to how codelists are output

Better logic around when and what errors/messages are printed to the
XForms around selections - corresponds to latest changes to SQBL Schema.