The node_storage functions to retrieve const and mutable structs
from a node are generated by a short macro that can be placed at the top
of each relevant file. I use this in D8286 to make code snippets in the
socket declarations much shorter, but I thought it would be good to
use it consistently everywhere else too.
I also changed some casting to avoid line wrapping, and used storage
consistently for node storage variable names.