check_reactive function

Check that argument is reactive.