Added a debug lib for php (for firebug), and now the arrays are working fine. Fixes #55.