Thank you for pointing this out!
I was actually trying to upgrade my 1.6.19 Grav version to 1.7.0-rc3, but currently facing this issue (Parameter #1 does not contain array of filenames).
But if this resolved, moving to Flex Pages seems a way to go (Y).