export doesn't handle array constants

 [2016-05-16 10:51 UTC] inefedor at gmail dot com

Description:
------------
ReflectionClass::export doesn't handle array constants and results in a Notice error being thrown. (because of direct call to `zval_get_string()` in reflection  ext) https://3v4l.org/X4EN0


Test script:
---------------
class A {
    const FOO = [1];
}
ReflectionClass::export("A");


Expected result:
----------------
Class [ <user> class A ] {
  @@ /in/X4EN0 3-5

  - Constants [1] {
    Constant [ array FOO ] { Array }
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [0] {
  }

  - Methods [0] {
  }
}

Actual result:
--------------
Notice: Array to string conversion in /in/X4EN0 on line 6
Class [ <user> class A ] {
  @@ /in/X4EN0 3-5

  - Constants [1] {
    Constant [ array FOO ] { Array }
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [0] {
  }

  - Methods [0] {
  }
}