Add imports to form docs. Fixes #2012.

#2012