Fix processing errors with various table and menclose attributes. Issue #367.
Merge remote-tracking branch 'fred/issue367-bis' into develop

Resolves issues #367.