fixed some const correctness
slight loading optimisation of uncompressed base64 encoded maps
replaced manual memory management in decompression function with more modern RAII management