Optimize RedBean:find*() methods and fixed possible bug.
Array flip won't flip non scalar values which could lead to a bug with data having null or complex values.