fix semantic error for checking on double type

the check of the parameter list returns true if just one element is a Double, but it should only returns true if all elements are of type Double