extended API for quantity class and set_initial_value method