Make getIndex() and getByIndex() public. Required a name change in native code Reviewed-by: alanb, chegar, michaelm