adapt to the recent API changes of opm-parser

this must be merged synchronously with OPM/opm-parser#333