Make g-ir-scanner warnings fatal errors

Also fix one reported issue.