Added debug argument for metadata factory

Just a very small addition: when the kernel is in debug mode (e.g. in the dev environment) this will make sure that the metadata will be parsed again, when the file containing the annotations has changed.