These two constructs are very simple and similar, and only support 3 different clauses, two of which are already implemented. This patch adds AST nodes for both constructs, and leaves the device_num clause unimplemented, but enables the other two.
No additional work required over what we did for other constructs, so this is just adding the tests and enabling the clauses.