Added DCAP_RASTER, DCAP_VECTOR to driver metadata for GDAL versions < 2.
Also fixed bug where getMetadata was modifying the metadata.