If you enter multiple attributes to be returned by the search tag using the 'attributes' attribute you only get back the last attribute in the list. This is simply because a variable in the doStart method does not get set back to zero. There are two while loops the first of which determines the size of the array to be created which will hold the attribute values. The second while loop populates the array. There are a few int variables that are used to control this functionality including 'int i' and 'int count'. After the first while loop 'count' gets reset to zero but 'i' does not. If 'i' also gets set to zero it works just fine.
Thanks for reporting this. The bug fix you suggested has been implemented.