effects: get_parameter<texture> – return reference

Previously returned a pointer. It would've thrown an exception anyway if
the parameter didn't exist. Might as well return a reference then.