The default bool value used in the serialize() method needs to be converted to a String otherwise you get errors when processing commands on the appium server since the server expects type String. Errors such as: 'Uncaught extension error while executing waitFor: type 'bool' is not a subtype of type 'Map<String, dynamic>' in type cast'
When using finders ByAncestor and ByDescendant, the type for value is Map, so this case needs to be handled in the forEach for ancestor and descendant commands to work. Otherwise the results are returned as localInstance, which is not what is needed.
Fixes #6
Two fixes so that