syntax check produces an exception, please see the model attached.
Created attachment 145 [details] model producing type exception
Confirmed.
The problem applies to all platforms.
Fixed on the 4.0 branch from rev. 2973.