added toarray
Merge branch '0.5' of github.com:boltphp/core into 0.5