Bugfix: swap inputs
Commit 5f140291 changed the return value of extract_dims when the node's 'value' attribute is None from None to [] without handling all uses of this function.
Commit 5f140291 changed the return value of extract_dims when the node's 'value' attribute is None from None to [] without handling all uses of this function.