cpp: bioformats: Add resolve argument to resolveReferences

Simply add an optional third argument.