It would be nice for these to return sequences instead of Arrays. I think those array types were just there due to this code being ported from java.