API generator: Android: Fix MethodResult bugs