Makes plugin compatible with php 5.3
Using temporary variable for types array

Close #57