fix and use load_data (similar to load_constant) and integrate into load_object when appropriate (ie for integers)