Verify types of the symbols in estimated_params{,_init,_bounds} statements.

Closes #624
(cherry picked from commit 9973c0f8fc6845bc6010aa4d85a237135361fa39)