BibDocFile: fix type of bibrec-bibdoc connection

* Changes the default value of the type in the bibrec_bibdoc
  table to the doctype of the bibdoc, instead of 'Main'.
  (closes #1759)

Tested-by: Tibor Simko <tibor.simko@cern.ch>