RefExtract: hdl handling

Conflicts:
	modules/docextract/lib/refextract_engine.py
	modules/docextract/lib/refextract_regression_tests.py