Costume JSON load/store, costume offset fix