MDEV-4252 geometry query crashes server.
      The bug was found by Alyssa Milburn.
      If the number of points of a geometry feature read from
      binary representation is greater than 0x10000000, then
      the (uint32) (num_points * 16) will cut the higher byte,
      which leads to various errors.
      Fixed by additional check if (num_points > max_n_points).
MDEV-4289 Assertion `0' fails in make_sortkey with GROUP_CONCAT, MAKE_SET, GROUP BY

Item_func_make_set wasn't taking into account the first argument when
calculating maybe_null.
MDEV-4252 geometry query crashes server.
    Additional fixes for possible overflows in length-related
    calculations in 'spatial' implementations.
    Checks added to the ::get_data_size() methods.
    max_n_points decreased to occupy less 2G size. An
    object of that size is practically inoperable anyway.
MDEV-4269 fix.
Item_default_value inherited form Item_field so should create temporary table field similary.
MDEV-4296 Assertion `n_linear_rings > 0' fails in Gis_polygon::centroid_xy.
        Forgotten DBUG_ASSERT should be replaced with the 'return error'.
MDEV-4295 Server crashes in get_point on a query with Area, AsBinary, MultiPoint.
        Need to check if the number of points is 0 for the polygon.
add 'plugins' suite - empty, but the line
./mtr --suite=main,plugins
will work on all branches.
MDEV-4277: Crash inside mi_killed_in_mariadb() with myisammrg
- Set MI_INFO::external_ref for MyISAM tables that are parts of myisamMRG table.
Merge
MDEV-4310 geometry function equals hangs forever.
        The Geometry::get_mbr() function can return an error on
        a bad data. We have to check for that and act respectively.
Fixed bug mdev-4318.
In some cases, when using views the optimizer incorrectly determined
possible join orders for queries with nested outer and inner joins.
This could lead to invalid execution plans for such queries.
MDEV-4292 fix.

Fixed printing column_get finction.
5.1 merge
GEOMETRYCOLLECTION EMPTY handling fixed.
          The get_mbr() method shouldn't return the error, rather an invalid MBR
          in this case.
5.2 merge
Merge.
MDEV-4335: Unexpected results when selecting on information_schema
- When converting a subquery to a semi-join, propagate OPTION_SCHEMA_TABLE.
MDEV-4240: mariadb 5.3.12 using more memory than MySQL 5.1 for an inefficient query
- Let index_merge allocate table handlers on quick select's MEM_ROOT,
  not on statement's MEM_ROOT. 
  This is crucial for big "range checked for each record" queries, where 
  index_merge can be created and deleted many times during query exection. 
  We should not make O(#rows) allocations on statement's MEM_ROOT.
Update tests results, mysql-test/r/windows.result
MDEV-4088 Replication 10.0 -> 5.5 fails

update 5.1 to replicate from 10.0 and
to show the server version (as of 10.0) correctly