add support and test for $unwind
fix $unwind test.  all working now.