Fixed bug in FLASH_Obj_attach_buffer_hierarchy().

Details:
- Fixed a bug in FLASH_Obj_attach_buffer_hierarchy() whereby
  FLASH_Obj_base_length()/_width() were incorrectly being used
  instead of FLASH_Obj_length()/_width(). Thanks to Jianyu Huang
  for finding this bug.