Add parameter types when cloning query.

Added fetching parameter types when cloning query until doctrine exposes a method to get the protected param types array.