fix(References): Fix Reference formatting selectors and type castings
fix(References): Fix Reference formatting selectors and type castings

stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila