GPValue adjustment to consider GPVariables

code change to allow for GPVariables as the input value for the
attribute selector. This is a consideration for the usage of the tool
inside model builder.