Fix how the pulse sequences dependencies are collected.

Dotted are not used anymore as they cannot be understood when collecting from config. Also updated Collect_build_from_config to return the Exception leading to the error in case of issue (useful to display an error message when instantiating contexts).
Adding tests for the template config and an api file for the pulses package.