Deriving for indexed newtypes