Datatype Boolean of puppet class parameter not recognized correctly if default value is false

If you have a puppet class
class Test (Boolean $test1= true, Boolean $test2 = false)

the parameter $test1 is correctly recognized as Boolean. However $test2 is recognized as String.

Expected outcome:
Both parameters are recognized as Boolean

Foreman and Proxy versions:
Fresh install from 26.11.2021 on RocketLinux using Foreman installer