Implement prefix and exploded varspec parsing

Not tested yet.