[setup] check opt is valid
[primitive arrays] fix uint missing declaration (FIX #85)